####################
# Makefile Body Shop
####################
# target ... : prerequisites ...
#  (tab)       command

DIR_INCLUDE = includes/
DIR_SOURCE = src/
DIR_BIN = bin/
# Wall: This will enable all compiler warnings
#FLAGS= -std=gnu99 -Wall
FLAGS= -std=gnu99
CC = gcc

#
#nombre_programa:
#	$(CC) $(FLAGS) -o $(DIR_BIN)nombre_binario $(DIR_SOURCE)objetos -I $(DIR_INCLUDE)

all:
# start
	$(CC) $(FLAGS) -o $(DIR_BIN)start $(DIR_SOURCE)start.c -I $(DIR_INCLUDE)
# stop
	$(CC) $(FLAGS) -o $(DIR_BIN)stop $(DIR_SOURCE)stop.c -I $(DIR_INCLUDE)
# stub_paintshop
	$(CC) $(FLAGS) -o $(DIR_BIN)stub_paintshop $(DIR_SOURCE)stub_paintshop.c -I $(DIR_INCLUDE)
# armado
	$(CC) $(FLAGS) -o $(DIR_BIN)armado $(DIR_SOURCE)armado.c -I $(DIR_INCLUDE)
# caja
	$(CC) $(FLAGS) -o $(DIR_BIN)caja $(DIR_SOURCE)caja.c -I $(DIR_INCLUDE)
# stub_ocompras
	$(CC) $(FLAGS) -o $(DIR_BIN)stub_ocompras $(DIR_SOURCE)stub_ocompras.c -I $(DIR_INCLUDE)
# stub_proveedor
	$(CC) $(FLAGS) -o $(DIR_BIN)stub_proveedor $(DIR_SOURCE)stub_proveedor.c -I $(DIR_INCLUDE)
# stub_hablacon_prov
#	$(CC) $(FLAGS) -o $(DIR_BIN)stub_hablacon_prov $(DIR_SOURCE)stub_hablacon_prov.c -I $(DIR_INCLUDE)
# puertas
	$(CC) $(FLAGS) -o $(DIR_BIN)puertas $(DIR_SOURCE)puertas.c -I $(DIR_INCLUDE)
# cabina
	$(CC) $(FLAGS) -o $(DIR_BIN)cabina $(DIR_SOURCE)cabina.c -I $(DIR_INCLUDE)
# floor
	$(CC) $(FLAGS) -o $(DIR_BIN)floorpan $(DIR_SOURCE)floorpan.c -I $(DIR_INCLUDE)
# spider
	$(CC) $(FLAGS) -o $(DIR_BIN)spider $(DIR_SOURCE)spider.c -I $(DIR_INCLUDE)
# frame
	$(CC) $(FLAGS) -o $(DIR_BIN)frame $(DIR_SOURCE)frame.c -I $(DIR_INCLUDE)

clean:
	@rm -fv src/*.o src/*.~ bin/* *~
